home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3dragp.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.3 KB  |  56 lines

  1.  
  2. // JavaScript wrapper for r3dragp.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_DRAGPOINT_H = 1;
  7. include("real/objects/r3prim.js")
  8.  
  9.  
  10. var R3CLID_DRAGPOINT = 1726;
  11.  
  12.  
  13.  
  14.  
  15. // Description: report hit information to the master
  16. // Virtual method
  17. // p1: Number, slaves distance to the ground
  18. // p2: r3Vect, slaves previous position
  19. // p3: r3Vect, slaves new position    
  20.  
  21. R3DRAGPOINTM_HIT = 1726000;
  22.  
  23. function mR3DRAGPOINTM_HIT(p1, p2, p3) {
  24.   DoA3(this.r3obj, 1726000, p1, R3TID_FLOAT, 0, p2, R3TID_VECTOR, 0, p3, R3TID_VECTOR, 0);
  25. }
  26.  
  27.  
  28.  
  29.  
  30. var R3DRAGPA_Mode = 1726500; // Integer
  31. R3DRAGPA_LastPosition = 1444567076;
  32. function SetR3DRAGPA_LastPosition(value) {
  33.   R3Set(this.r3obj, R3DRAGPA_LastPosition, value, R3TID_VECTOR, 0); 
  34. }
  35.  
  36. function GetR3DRAGPA_LastPosition() {
  37.   return R3Get(this.r3obj, R3DRAGPA_LastPosition, R3TID_VECTOR, 0); 
  38. }
  39.  
  40.  
  41.  
  42. function r3Dragpoint () { 
  43.    this.base = r3God;
  44.    if(arguments.length) {
  45.       this.base(R3CLID_DRAGPOINT, arguments);
  46.    }
  47.    // Methods
  48.    this.HIT=mR3DRAGPOINTM_HIT;
  49.  
  50.    // Attributes
  51.    this.GetLastPosition=GetR3DRAGPA_LastPosition;
  52.    this.SetLastPosition=SetR3DRAGPA_LastPosition;
  53. }
  54.  
  55. r3Dragpoint.prototype=new r3Primitive;
  56. // r3dragp.h_H